package com.buli.blmall.admin.common.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 * @author xiang.gao
 * @date 2025/2/20 17:49
 */
@Data
@Schema(description = "短信发送")
public class SmsSend {

    @Schema(description = "验证码id")
    @NotEmpty(message = "验证码id不能为空")
    private String captchaId;

    @Schema(description = "验证码")
    @NotEmpty(message = "验证码不能为空")
    private String captchaCode;

    @Schema(description = "手机号")
    @Size(min = 11, max = 11, message = "手机号长度必须为11位")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    private String phoneNumber;

}
